<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name = "viewport" content="width = device-width">
    <title>Title</title>
    <style>
        *{margin:0; padding:0;text-decoration: none; outline:none;}
        a{
            color:black;
        }
        body{
            background-color: #F1F1F1;
        }
        .header{
            height: 10vw;
            width: 100%;
            position: fixed;
            top:0;
            left:0;
        }
        .header p{
            line-height: 10vw;
            text-align: center;
            color:white;
            background-color: #C8F7C4;
            font-weight: 700;
            font-size:5vw;
        }
        .search{
            margin-top:10vw;
            height: 15vw;
            background-color: white;
            text-align: center;
            line-height: 14vw;
        }
        .search input{
            padding-left: 8vw;
            border-radius: 10px;
            box-sizing:border-box;
            width: 90%;
            height:8vw;
            border:none;
            background: #F4F4F4 url("image/sousuo.png") 3vw no-repeat;
        }
        ::placeholder{
            color:#aaa;
        }
        .banner{
            position: relative;
        }
        .banner .nav_dot{
            width: 18vw;
            position: absolute;
            bottom:3vw;
            left:50%;
            margin-left:-8vw;
        }
        .banner .dot{
            width: 3vw;
            height: 3vw;
            background-color: #ccc;
            border-radius:50%;
            float: left;
            margin-right:3vw;
        }
        .banner .dot1{
            background-color: black;
        }
        .nav_top{
            height: 10vw;
            background-color: white;
        }
        .nav_top p{
            width: 100%;
            justify-content: space-between;
            display: flex;
            flex:1;
        }
        .nav_top p span{
            margin-top:3vw;
        }
        .nav_top .daohang{
            border-left:3px solid rgb(35,172,56);
            margin-left:3vw;
            color:rgb(35,172,56);
            padding-left:5vw;
            font-size:4vw;
        }
        .nav_top .daohang2{
            font-size:4vw;
            margin-right:4vw;
        }
        .picnav{
            height:16vw;
            background-color: white;
        }
        .picnav div{
            margin: 0 auto;
            width: 50%;
            height: 11vw;
            font-size:4vw;
            border-radius:6px;
            font-weight:700;
            color:white;
            background-color: #017721;
        }
        .picnav ul li{
            float: left;
            list-style: none;
            font-size: 3vw;
            box-sizing:border-box;
            text-align:center;
            width: 20%;
        }
        .product{
            margin-bottom:10px;
        }
        .product_nav{
            height: 11vw;
            background-color: white;
            margin-top:1vw;
            font-size: 4vw;
            width: 100%;
            justify-content: space-between;
            display: flex;
            flex:1;
        }
        .product_nav .product_show{
            margin-left:3vw;
            line-height: 11vw;
            border-left:3px solid rgb(35,172,56);
            color: rgb(35,172,56);
            padding-left:5vw;
        }
        .product_nav .more{
            font-size: 4vw;
            margin-right:4vw;
            line-height: 11vw;
        }
        .product{
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
        }
        .product_cnt1{
            width: 49%;
        }
        .product_cnt1 p:nth-child(1){
            font-size:4vw;
        }
        .product_cnt1 p:nth-child(2){
            font-size:3vw;
            color:#B3B3B3;
            margin-top:3vw;
        }
        .product_cnt1 p:nth-child(3), .product_cnt1 p:nth-child(4){
            margin:2vw auto;
            font-size:3vw;
            color:#B3B3B3;
        }
        .product_cnt1  span{
            color:#FF1414;
            font-size:4vw;
            margin-right:2vw;
        }
        .product_cnt1 div{
            background-color: white;
        }
        .project .projectpic,.environment .projectpic{
            width: 50%;
        }
        .project,.environment{
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
        }
        .problem{
            margin-bottom:14vw;
        }
        .problem .img1{
            width: 100%;
            display: flex;
        }
        .problem .img1 .pic{
            flex:2;
        }
        .problem .img1 .wenzi{
            flex:8;
        }
        .problem .wenzi p{
            margin-top : 3vw;
        }
        .footer{
            position: fixed;
            z-index:1;
            bottom:0;
            width: 100%;
            display: flex;
            background-color: white;
            justify-content:space-around;
        }
        .footer div img{
            display: block;
            margin:0 auto;
        }
    </style>
</head>
<body>
<div class="all">
    <div class="header">
        <p>安徽保温建材</p>
    </div>
    <div class="search">
        <input type="text" placeholder="搜索商品">
    </div>
    <div class="banner">
        <img src="image/1.jpg" id="pic"  alt="" width="100%">
        <div class="nav_dot">
        <span onclick = "change(1)"  class="dot dot1"></span>
        <span onclick = "change(2)"  class="dot"></span>
        <span onclick = "change(3)" class="dot"></span>
        </div>
    </div>
    <div class="nav_top">
        <p><span class="daohang">导航菜单</span><span class="daohang2">&nbsp;&gt;</span></p>
    </div>
    <div class="picnav">
        <ul>
            <li><div>公司介绍</div><a href="">公司介绍</a></li>
            <li><div>最新动态</div><a href="">最新动态</a></li>
            <li><div>产品展示</div><a href="">产品展示</a></li>
            <li><div>工程案例</div><a href="">工程案例</a></li>
            <li><div>工厂环境</div><a href="">工厂环境</a></li>
        </ul>
    </div>
    <!--产品展示内容区-->
    <div class="product_nav">
        <span class="product_show">产品展示</span>
        <span class="more">查看更多&nbsp;&gt;</span>
    </div>
    <div class="product">
        <div class="product_cnt1">
            <img src="image/4.jpg" width="100%" alt="">
            <div>
            <p>岩棉复合板 28元/平方</p>
            <p>安徽保温建材-安徽嘉明有...</p>
            <p><span>￥28</span>已售0件</p>
            <p>0条评价 0%条好评</p>
            </div>
        </div>
        <div class="product_cnt1">
            <img src="image/5.jpg" width="100%" alt="">
            <div>
                <p>岩棉复合板 28元/平方</p>
                <p>安徽保温建材-安徽嘉明有...</p>
                <p><span>￥28</span>已售0件</p>
                <p>0条评价 0%条好评</p>
            </div>
        </div>
        <div class="product_cnt1">
            <img src="image/6.jpg" width="100%" alt="">
            <div>
                <p>岩棉复合板 28元/平方</p>
                <p>安徽保温建材-安徽嘉明有...</p>
                <p><span>￥28</span>已售0件</p>
                <p>0条评价 0%条好评</p>
            </div>
        </div>
        <div class="product_cnt1">
            <img src="image/7.jpg" width="100%" alt="">
            <div>
                <p>岩棉复合板 28元/平方</p>
                <p>安徽保温建材-安徽嘉明有...</p>
                <p><span>￥28</span>已售0件</p>
                <p>0条评价 0%条好评</p>
            </div>
        </div>
        <div class="product_cnt1">
            <img src="image/8.jpg" width="100%" alt="">
            <div>
                <p>岩棉复合板 28元/平方</p>
                <p>安徽保温建材-安徽嘉明有...</p>
                <p><span>￥28</span>已售0件</p>
                <p>0条评价 0%条好评</p>
            </div>
        </div>
        <div class="product_cnt1">
            <img src="image/9.jpg" width="100%" alt="">
            <div>
                <p>岩棉复合板 28元/平方</p>
                <p>安徽保温建材-安徽嘉明有...</p>
                <p><span>￥28</span>已售0件</p>
                <p>0条评价 0%条好评</p>
            </div>
        </div>
        <div class="product_cnt1">
            <img src="image/10.jpg" width="100%" alt="">
            <div>
                <p>岩棉复合板 28元/平方</p>
                <p>安徽保温建材-安徽嘉明有...</p>
                <p><span>￥28</span>已售0件</p>
                <p>0条评价 0%条好评</p>
            </div>
        </div>
        <div class="product_cnt1">
            <img src="image/11.jpg" width="100%" alt="">
            <div>
                <p>岩棉复合板 28元/平方</p>
                <p>安徽保温建材-安徽嘉明有...</p>
                <p><span>￥28</span>已售0件</p>
                <p>0条评价 0%条好评</p>
            </div>
        </div>
    </div>
    <!--工程案例-->
    <div class="product_nav">
        <span class="product_show">工程案例</span>
        <span class="more">查看更多&nbsp;&gt;</span>
    </div>
    <div class="project">
        <div class="projectpic"><img src="image/12.jpg" width="100%" alt=""></div>
        <div class="projectpic"><img src="image/13.jpg" width="100%" alt=""></div>
        <div class="projectpic"><img src="image/14.jpg" width="100%" alt=""></div>
        <div class="projectpic"><img src="image/15.jpg" width="100%" alt=""></div>
        <div class="projectpic"><img src="image/16.jpg" width="100%" alt=""></div>
        <div class="projectpic"><img src="image/17.jpg" width="100%" alt=""></div>
    </div>
    <div class="product_nav">
        <span class="product_show">工厂环境</span>
        <span class="more">查看更多&nbsp;&gt;</span>
    </div>
    <div class="environment">
        <div class="projectpic"><img src="image/18.jpg" width="100%" alt=""></div>
        <div class="projectpic"><img src="image/19.jpg" width="100%" alt=""></div>
        <div class="projectpic"><img src="image/20.jpg" width="100%" alt=""></div>
        <div class="projectpic"><img src="image/21.jpg" width="100%" alt=""></div>
    </div>
    <div class="product_nav">
        <span class="product_show">常见问题</span>
        <span class="more">查看更多&nbsp;&gt;</span>
    </div>
    <div class="problem">
      <div class="img1">
          <div class="pic"><img src="image/23.jpg" width="100%" alt=""></div>
          <div class="wenzi">
          <span>保温装饰一体化板厂为北方客户定制了加厚保温样品已经出来了</span>
          <p>2018-9-30</p>
          </div>
      </div>
        <div class="img1">
            <div class="pic"><img src="image/23.jpg" width="100%" alt=""></div>
            <div class="wenzi">
                <span>淮南保温材料中的岩棉板准备在工地上安装</span>
                <p>2018-9-30</p>
            </div>
        </div>
        <div class="img1">
            <div class="pic"><img src="image/23.jpg" width="100%" alt=""></div>
            <div class="wenzi">
                <span>保温装饰材料最新的技术引领前沿</span>
                <p>2018-9-30</p>
            </div>
        </div>
    </div>
    <div class="footer">
        <div><img src="image/shouye1.png" alt=""><p>首页</p></div>
        <div><img src="image/fenlei.png" alt=""><p>商品分类</p></div>
        <div><img src="image/dingdan.png" alt=""><p>订单</p></div>
        <div><img src="image/wode2.png" alt=""><p>我的</p></div>
    </div>
</div>
<script>
    var span = document.getElementsByClassName("dot");
    var pic = document.getElementById("pic");
    function change(x) {
        pic.src = "image/" + x + ".jpg";
        for (var i = 0;i < span.length;i ++){
            span[i].className = "dot"
        }
        span[--x].className += " dot1";
    }
    function changeDotColor() {
        for (var j = 0;j < span.length;j ++){
            span[j].className = "dot"
        }
        span[i-1].className += " dot1";
    }
    var i = 1;
    setInterval(f,3000);
    function f() {
       pic.onclick();
    }
        pic.onclick = function () {
            if (i == 3) i = 0;
            pic.src = "image/" + ++i + ".jpg";
            changeDotColor();
        };
</script>
</body>
</html>